<div class="asidetop">
    <ul class="tab_navs">
        <li>
            <a onclick="getRight('/Keyword');" href="javascript:void(0)">关键词列表</a>
        </li>
        <li class="selected">
            <a href="javascript:void(0)">添加关键词</a>
        </li>
    </ul>
</div>
<div class="sub_title_bar white" style="clear: both">
    <div class="info">
        <form action="/Keyword/do_add" method="post" id = "postform">
			<input type="hidden" name="sid" id="sid" />
			关键词：<input type="text" name="word" id="word" />
			<input type="submit" id="submits" value="添加">
			<span id="title"></span>
		</form>
    </div>
    <div class="pagination_wrp pageNavigator">
        <div class="pagination">
			<span class="page_nav_area">
                <a class="btn page_prev getRight" href="/Sucai/index/page/{$prev}"><i class="arrow"></i></a>        
                <span class="page_num">
                    <label>{$page}</label>
                    <span class="num_gap">/</span>
                    <label>{$count}</label>
                </span>        
                <a class="btn page_next getRight" href="/Sucai/index/page/{$next}"><i class="arrow"></i></a>
			</span>    
            <span class="goto_area">
                <input type="text" id="goid">
                <a class="btn page_go" href="javascript:void(0);" onclick="getRight('/Sucai/index/page/'+$('#goid').val());">跳转</a>
            </span>    
		</div>
    </div>
</div>
<h4 style="padding:10px;">图文消息列表:</h4>
<ul class="data_box">
<volist name="data" id="vo">
	<li id="{$vo.id}">{$vo.title}</li>
</volist>
</ul>
<script>
	$('#postform').ajaxForm({
		beforeSubmit:function(){
			$('#word').val($.trim($('#word').val()));
			if (!$('#sid').val()) {
				successBox('error','选择图文消息！');
				return false
			}
			if (!$('#word').val()) {
				successBox('error','请输入关键词！');
				return false
			}
			$('#submits').attr('disabled','true');
			return true;
		},
		success:function(){
			successBox('success','上传成功！',1000);
			getRight('/Keyword/add');
		},
		dataType: 'json'
	});
</script>